PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-15 10:10:50.422353+00:00 (UTC)
In US/Central Time, this is 2024-03-15 05:10:50.422353-05:00
## Visualize Principal Component 1
pc1, loadings = pca_index.pca(dfn, module="scikitlearn")
pc1.plot();
../../_images/81c66670b43598260c3fa71c62c9155bc638056cefaab138d32f583003ab8002.png
# Simple version
fig = px.line(pc1)
fig.show()
vix = df.loc[:,['VIX']]
vix.plot()
<Axes: xlabel='DATE'>
../../_images/c14225b421b218a72d5b4b8b7712ed7f401b1aa909a14512e58b7e0161a9fb4e.png
fig = px.line(vix)
fig.show()
../../_images/896a655e26a4534486247a4eebc4a45bda5ca512176681167ec5562b343cf7cb.png